//
//  ZDDMusicManger.h
//  QQ音乐(皇家尊享版)
//
//  Created by 周冬冬 on 16/7/21.
//  Copyright © 2016年 我的mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
@interface ZDDMusicManger : NSObject
//播放器
@property(nonatomic,strong)AVAudioPlayer * audioPlayer;
//持续时间
@property (nonatomic, assign, readonly) NSTimeInterval duration;
//当前时间
@property (nonatomic, assign) NSTimeInterval currentTime;

//单利
+(instancetype)sharedManger;
//播放/继续播放音乐
-(void)playMusicWithFilename:(NSString * )filename;
//暂停音乐
- (void)pauseMusic;

@end
